// 例子39
var person = {}

var person = {}

Object.defineProperty(person, 'name', {
    value: 'Tom',
    writable: false,
    configurable: false
})

var descripter = Object.getOwnPropertyDescriptor(person, 'name');

console.log(descripter);  // 返回结果如下

descripter = {
    configurable: false,
    enumerable: false,
    value: 'Tom',
    writable: false
}